#pragma once
#include "Nervus.h"
#include "TrainingCaseDB.h"

class CeBrain
{
public:
	CeBrain(void);
	~CeBrain(void);

	void BuildNervusMap( int nIdx,double tryValue );
	void ClearNervusMap( int nIdx );
	float RunAllTrainingCase( double tryValue );
	bool RunTrainingCase( int nIdx );
	void ChangeNervusConnection( void );

	void SetNervusValues( NervusValue* pValues, int nCount )
	{
		m_pNervusValues = pValues;
		m_nNervusValuesCount = nCount;
	};

	void SetNervusLinks( NervusLink* pLinks, int nCount )
	{
		m_pNervusLinks = pLinks;
		m_nNervusLinksCount = nCount;
	};

private:
	CNervusMap *m_pNervusMap[MAX_CASE2];
	NervusValue* m_pNervusValues;
	int m_nNervusValuesCount;
	CTrainingCaseDB *m_pTrainingCaseDB;
	NervusLink* m_pNervusLinks;
	int m_nNervusLinksCount;
};

